package com.baizhi.cmfz.service.impl;

import com.baizhi.cmfz.annotation.AddCacheAnnotation;
import com.baizhi.cmfz.entity.Menu;
import com.baizhi.cmfz.mapper.MenuMapper;
import com.baizhi.cmfz.service.MenuService;
import lombok.extern.slf4j.Slf4j;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@Service
@Slf4j
@Transactional
public class MenuServiceImpl implements MenuService {
    @Autowired
    private MenuMapper mm;

    @Override
    @AddCacheAnnotation
    public List<Menu> selectAllMenu() {
        return mm.selectAllMenu();
    }
}
